package com.chance.cc.crawler.development.command.publish.enorth;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.enorth.EnorthCrawlerScheduleJob;
import com.chance.cc.crawler.development.command.script.enorth.EnorthCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.enorth.EnorthScheduleTrigger;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2020/12/18 15:38
 * @Description
 *      北方网
 **/
public class EnorthPublishCrawlerJob {

    public static void main(String[] args) {
        publishCrawlerJob();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = EnorthCrawlerScheduleJob.publishenorthCrawlerScheduleJobInfo();
        EnorthScheduleTrigger.publishScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
        EnorthCrawlerScript.publishCrawlerNodeScript();
    }
}
